@import '../../../../assets/less/base/variables.less';
@import '../../../../assets/less/base/newTabPageCommom.less';
@import '../../../../assets/less/base/variables.less';

.info-main-content {
	padding-top: 10px;
	padding-bottom: 30px;
}

.top-bd {
	position: relative;
	.top-action-btn {
		font-size: 14px;
		height: 32px;
		line-height: 32px;
		color: #a6a6a6;
		display: flex;
		align-items: center;
		margin-left: 50px;
		.icon-edit {
			font-size: 22px;
			transform: translateY(-2px);
		}
		&:hover {
			color: #666;
		}
	}
	.top-show-pic {
		position: absolute;
		right: 0;
		height: 32px;
		line-height: 32px;
		font-size: 14px;
		color: #5995d8;
		&:hover {
			& + .preview-rule-img {
				display: block;
			}
		}
	}

	.preview-rule-img {
		position: absolute;
		right: 0;
		top: 34px;
		display: none;
	}
}

.top-action {
	margin-bottom: 15px;
	.add-icon {
		color: #5995d8;
		font-size: 14px;
		height: 30px;
		display: flex;
		align-items: center;
		padding-left: 9px;
		display: inline-block;
		i {
			font-size: 17px;
			margin-right: 4px;
		}
	}
}

.content {
	padding: 30px 0;
	padding-top: 10px;
}

.tab {
	display: flex;
	border-bottom: 1px solid @lightBorderColor;
	.tab-item {
		height: 50px;
		width: 200px;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 14px;
		color: @grey99;
		position: relative;
		cursor: pointer;
		&.active {
			font-size: 14px;
			color: @blue;
			font-weight: 600;
			&:after {
				content: '';
				position: absolute;
				bottom: -1px;
				height: 4px;
				width: 100%;
				left: 0;
				background: @blue;
			}
		}
	}
}

.charge-content {
	border: 1px solid @grayD8;
	border-top: none;
	border-radius: 0 0 4px 4px;
}

.charge-type-tab {
	display: flex;
	padding-top: 10px;
	padding-left: 20px;
	border-bottom: 1px solid #d7dce2;
	.tab-item {
		height: 32px;
		line-height: 32px;
		text-align: center;
		font-size: 14px;
		color: #999999;
		padding: 0 22px;
		&.active {
			background: #5995d8;
			border-radius: 4px 4px 0 0;
			color: #fff;
		}
	}
}

.charge-rule-item {
	.charge-rule-item-bd {
		padding-top: 20px;
		.top {
			.top-item {
				width: 245px;
				height: 32px;
				line-height: 32px;
				padding-left: 20px;
				font-size: 14px;
				color: #474747;
			}
		}
		.rule-types-box {
			padding-left: 20px;
			padding-right: 20px;
			font-size: 14px;
			color: #333333;
			&.qufen {
				padding-top: 15px;
				padding-bottom: 15px;
			}
			&.time-range {
				.time-item {
					width: 136px;
					height: 16px;
					line-height: 16px;
					border-right: 1px solid #d4d4d4;
					margin-right: 20px;
				}

				.time-range-item:not(:last-child) {
					border-bottom: 1px dashed #c2c2c2;
				}

				.time-range-type-2-left {
					display: flex;
					align-items: center;
				}
				.type-3 {
					padding-top: 18px;
					margin-top: 13px;
					&.time-range-item {
						margin-top: 0;
						.type-3-top {
							margin-bottom: 8px;
						}

						&:not(:last-child) {
							padding-bottom: 16px;
						}
					}
					.time-item {
						margin-right: 0;
						border-right: 0;
						margin-right: 20px;
						height: 16px;
						line-height: 16px;
						border-right: 1px solid #d4d4d4;
					}
					.type-3-bd {
						flex: 1;
						margin-left: 4px;
					}
					.type-3-top-item {
						.rule-detail-item {
							width: 110px;
						}
					}
				}
				.type-2 {
					.rule-detail-item {
						width: 110px;
					}
				}
			}
			.type-1 {
				height: 50px;
				display: flex;
				align-items: center;
			}
			.type-2 {
				.type-1;
				justify-content: space-between;
				.type-2-top {
					display: flex;
					align-items: center;
					.price-limit {
						height: 16px;
						line-height: 16px;
						padding-left: 20px;
						border-left: 1px solid #d4d4d4;
						width: 110px;
					}
					.settlement {
						height: 26px;
						line-height: 26px;
						background: #f4f4f4;
						padding: 0 8px;
						border-radius: 4px;
						color: #666;
						font-size: 13px;
					}
				}
				.settlement {
					height: 26px;
					line-height: 26px;
					background: #f4f4f4;
					padding: 0 8px;
					border-radius: 4px;
					color: #666;
					font-size: 13px;
					margin-left: 20px;
				}
				.price-limit {
					height: 16px;
					line-height: 16px;
					padding-left: 20px;
					border-left: 1px solid #d4d4d4;
					width: 110px;
				}
			}
			.type-3 {
				font-size: 14px;
				color: #333333;
				.type-3-top {
					display: flex;
					align-items: center;
					margin-bottom: 12px;
					.price-limit {
						height: 16px;
						line-height: 16px;
						width: 110px;
					}
					.settlement {
						height: 26px;
						line-height: 26px;
						background: #f4f4f4;
						padding: 0 8px;
						border-radius: 4px;
						color: #666;
						font-size: 13px;
					}
				}
				.type-3-bd {
					padding-left: 20px;
					border-left: 1px dashed #d8d8d8;
					position: relative;
					&:before {
						content: '';
						position: absolute;
						left: 0;
						top: 14px;
						width: 10px;
						height: 10px;
						background: #fff;
						border: 2px solid #5995d8;
						border-radius: 50%;
						transform: translate(-50%, -50%);
					}

					&:after {
						content: '';
						position: absolute;
						left: 0;
						bottom: 14px;
						width: 10px;
						height: 10px;
						background: #fff;
						border: 2px solid #5995d8;
						border-radius: 50%;
						transform: translate(-50%, 50%);
					}

					.mask {
						position: absolute;
						width: 4px;
						height: 10px;
						background: #fff;
						&.mask-top {
							left: -2px;
							top: -1px;
						}
						&.mask-bottom {
							left: -2px;
							bottom: -1px;
						}
					}

					& .type-3-top-item {
						display: flex;
						justify-content: space-between;
						align-items: center;
						height: 30px;
						line-height: 30px;
						.left-info-item {
							display: flex;
							align-items: center;
						}
					}
					.type-3-middle-item {
						.xunhuan-item {
							height: 30px;
							line-height: 30px;
						}
					}
					.show-more-action {
						height: 30px;
						line-height: 30px;
						color: #5995d8;
						cursor: pointer;
					}
					.type-3-bottom-item {
						height: 30px;
						line-height: 30px;
					}
				}
			}
		}
		.bottom {
			height: 50px;
			border-top: 1px solid #d7dce2;
			padding-left: 20px;
			padding-right: 20px;
			font-size: 14px;
			color: #333333;
			display: flex;
			align-items: center;
			.bottom-info-item {
				height: 16px;
				line-height: 16px;
				padding-left: 20px;
				padding-right: 20px;
				&:first-child {
					padding-left: 0;
				}
			}
			.bottom-info-item:not(:first-child) {
				border-left: 1px solid #d4d4d4;
			}
		}
	}
}

.rule-items {
	margin-top: 25px;
}

.rule-item {
	border: 1px solid @grayD8;
	border-radius: 6px;
	padding-top: 15px;
	padding-left: 20px;
	padding-right: 20px;
	margin-bottom: 18px;
	position: relative;
	.del-rule-item-icon {
		position: absolute;
		right: -18px;
		top: -19px;
		height: 40px;
		width: 40px;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		.el-icon-circle-close {
			color: @red;
			font-size: 22px;
		}
	}
	&:last-child {
		margin-bottom: 0;
	}
	.rule-detail {
		margin: 0 -20px;
		.detail-content {
			margin-top: 15px;
		}
	}
	.show-rule-detail {
		background: @greyF4;
		padding: 0 20px;
		height: 30px;
		position: relative;
		cursor: pointer;
		.title {
			font-size: 14px;
			color: @darkGrey;
			line-height: 30px;
		}
		.show-rule-detail-icon {
			position: absolute;
			right: 0;
			height: 30px;
			top: 0;
			width: 50px;
			display: flex;
			justify-content: center;
			align-items: center;

			.el-icon-caret-bottom {
				font-size: 18px;
				color: @darkGrey;
				transition: transform 0.25s ease;
				transform-origin: center center;
				&.rotate180 {
					transform: rotate(-180deg);
				}
			}
		}
	}
	.rule-setting {
		margin-left: 20px;
		margin-right: 20px;
		margin-bottom: 20px;
		&.dates-rules {
			border-left: 1px solid @grayD8;
			border-right: 1px solid @grayD8;
			border-bottom: 1px solid @grayD8;
			.rule-type-tab {
				margin-left: 15px;
			}
		}
	}
	.rule-setting-content {
		background: @greyF4;
		padding: 10px;
		.type-content {
			.el-form--inline:last-child {
				margin-bottom: 0;
			}
			&.xunhuan-content {
				padding-left: 16px;
				margin-left: 12px;
				border-left: 2px dashed @grayC2;
				position: relative;
				.top-circle {
					position: absolute;
					left: -12px;
					top: 0;
					width: 24px;
					height: 24px;
					background: @greyF4;
					&:before {
						content: '';
						position: absolute;
						left: 6px;
						top: 12px;
						width: 10px;
						height: 10px;
						border-radius: 50%;
						border: 2px solid @blue;
					}
				}
				.bottom-circle {
					position: absolute;
					left: -12px;
					bottom: 0;
					width: 24px;
					height: 24px;
					background: @greyF4;
					&:before {
						content: '';
						position: absolute;
						left: 6px;
						bottom: 12px;
						width: 10px;
						height: 10px;
						border-radius: 50%;
						border: 2px solid @blue;
					}
				}
			}
		}
	}
}

.rule-type-tab {
	display: flex;
	.tab-item {
		width: 128px;
		height: 45px;
		display: flex;
		align-items: center;
		justify-content: center;
		.el-radio {
			display: flex;
			align-items: center;
			justify-content: center;
		}
		&.active {
			background: @greyF4;
			border-top-left-radius: 4px;
			border-top-right-radius: 4px;
		}
	}
}

.zb-inline-form {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	.el-form-item {
		margin-bottom: 0;
		&.input-width-control {
			.el-form-item__content {
				width: 180px;
			}
		}
	}
}

.question-icon {
	font-size: 20px;
	color: @grey99;
	margin: 0 8px;
	cursor: pointer;
}

.add-rule-icon {
	margin-left: 30px;
}

.add-ruleDetail-icon {
	margin-left: 10px;
}

.xunhuan-inline-form {
	margin-bottom: 0;
	background: @grayE9;
	padding: 7px 0;
	border-radius: 4px;
	margin-top: -5px;
	width: 572px;
	margin-bottom: 15px;
	position: relative;
}

.el-date-editor.el-input {
	width: 170px;
}

.date-form-item {
	padding: 7px;
	background: @grayE9;
	margin-bottom: 10px;
	position: relative;
}

.daysRules {
	.top-title {
		font-size: 14px;
		color: @darkGrey;
		line-height: 30px;
		background: @greyF4;
		padding: 0 20px;
	}
	.daysRules-content {
		padding-left: 20px;
		padding-right: 20px;
		padding-top: 20px;
	}
}

.zb-form .daysRules-content .el-radio {
	width: 95px;
}

.del-icon {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	.el-icon-close {
		color: @grey66;
		font-size: 16px;
	}
}

.special-rule-form {
	.top-tips {
		background: #ffeee3;
		border-radius: 4px;
		font-size: 14px;
		color: #f86300;
		text-align: center;
		height: 30px;
		line-height: 30px;
		.el-icon-warning {
			color: #f5661d;
			font-size: 18px;
			vertical-align: text-bottom;
		}
	}
	.top-title {
		display: flex;
		.title {
			font-size: 14px;
			color: @grey66;
		}
		.add-icon {
			color: @blue;
			font-size: 14px;
			margin-left: 20px;
			display: flex;
			align-items: center;
			.el-icon-circle-plus {
				margin-right: 6px;
				font-size: 17px;
			}
		}
	}
	.special-rule-list {
		.special-rule-item:not(:last-child) {
			margin-bottom: 20px;
		}
		.rule-content {
			padding: 25px 0 25px 15px;
			border-left: 1px solid @grayD8;
			border-right: 1px solid @grayD8;
			border-bottom: 1px solid @grayD8;
			border-radius: 0 0 4px 4px;
			.action-box {
				display: flex;
				margin-bottom: 0;
				margin-top: 30px;
				padding-left: 20px;
			}
			.rule-inline-form:last-child {
				margin-bottom: 0;
			}
			.el-select {
				width: 172px;
			}
			.el-radio-group .el-radio {
				width: 109px;
			}
		}
	}
}
.add-special-rule-item {
	margin-top: 20px;
	.rule-type-tab .tab-item {
		width: 156px;
	}
}
.add-special-rule-bd {
	padding: 10px 20px 20px 20px;
	border: 1px solid @grayD8;
	border-radius: 4px;
	margin-top: 18px;
	.rule-content {
		padding: 20px;
		padding-top: 30px;
		padding-bottom: 10px;
		background: @greyF4;
	}
	.el-select {
		width: 176px;
	}
	.el-date-editor.el-input {
		width: 176px;
	}
}

.unit_ {
	font-size: 20px;
	margin: 0 10px;
}

.add-special-rule-item .rule-type-tab .el-radio-group {
	display: flex;
}

.add-ruleGroup-icon {
	color: @blue;
	font-size: 14px;
	display: flex;
	align-items: center;
	cursor: pointer;
	.el-icon-circle-plus {
		font-size: 17px;
	}
}

.rule-form {
	margin-bottom: 25px;
}

.rule-setting-content {
	margin-bottom: 20px;

	.el-form-item {
		margin-bottom: unset;
	}
}

.naturalDay-sub-list {
	margin-bottom: 8px;
	padding-left: 20px;
	.sub-item {
		background: #f4f4f4;
		border-radius: 4px;
		padding: 10px 20px;
		display: flex;
		position: relative;
		margin-bottom: 15px;

		> div {
			&:first-child {
				// padding-top: 6px;
				margin-right: 10px;
			}

			&.time-slot {
				margin-bottom: 0px;

				.symbol {
					margin-right: 10px;
				}
			}
		}

		.money-box {
			display: flex;

			.unit {
				padding-top: 7px;
				margin-left: 10px;
			}

			.el-form-item {
				margin-bottom: 0px;
			}
		}

		.del-icon {
			top: 18px;
			align-items: unset;
		}
	}
}

.zb-form {
	width: 480px;
}

.detail-content {
	padding-left: 20px;
}

.main-content {
	padding: 0 20px 40px 20px;
	margin: 0 20px;
	margin-top: 20px;
}

.info-main-content {
	padding-top: 0;
}

.rule-top {
	padding-left: 20px;
	background: @grayF2;
	height: 40px;
	display: flex;
	justify-content: space-between;
	border-radius: 4px 4px 0 0;
	&.is-hide {
		border-radius: 4px;
	}
	.title {
		flex: 1;
		height: 40px;
		line-height: 40px;
		font-size: 14px;
		color: @grey47;
		display: flex;
		align-items: center;
	}
	.action {
		display: flex;
		align-items: center;
	}
	.delItem-icon {
		height: 100%;
		width: 60px;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		.el-icon-close {
			color: @grey66;
			font-size: 16px;
		}
	}
	.action-bar-item {
		height: 40px;
		line-height: 40px;
		font-size: 14px;
		color: #a6a6a6;
		margin-left: 15px;
		i {
			font-size: 22px;
			vertical-align: sub;
		}
		&.rmb {
			i {
				font-size: 18px;
			}
		}
		&.del {
			i {
				font-size: 19px;
			}
		}
		&:hover {
			color: #666;
		}
	}
	.show-rule-detail-icon {
		height: 100%;
		width: 68px;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		.el-icon-caret-bottom {
			font-size: 18px;
			color: #a6a6a6;
			transition: transform 0.25s ease-in;
			transform-origin: center center;
			&.rotate180 {
				transform: rotate(-180deg);
			}
		}
		&:hover {
			.el-icon-caret-bottom {
				color: #666;
			}
		}
	}

	.open-status {
		height: 20px;
		line-height: 20px;
		width: 48px;
		text-align: center;
		border-radius: 10px;
		background: @green2;
		font-size: 12px;
		color: #fff;
		margin-left: 20px;
		&.close {
			background: #cdcdcd;
		}
	}
}

.calc-result {
	margin-top: 25px;
	margin-left: 34px;
	.title {
		font-size: 14px;
		color: #474747;
		font-weight: bold;
	}
	.result-list {
		padding-top: 15px;
		.result-item {
			display: flex;
			font-size: 14px;
			color: #666666;
			height: 32px;
			line-height: 32px;
			.result-right-content {
				flex: 1;
				.value {
					font-size: 18px;
					color: #f04949;
				}
			}
		}
	}
}
